package com.user.dao;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import com.user.entity.Manager;
@Repository
public interface ManagerRepository extends PagingAndSortingRepository<Manager, Long>, JpaSpecificationExecutor<Manager> {
	@Query(value="from Manager m where m.username=?1 and m.password=?2")
	public Manager findLogin(String username,String password);
}
